var sp=document.querySelector('.login')
var p1 = document.querySelector('.register')
var a = document.querySelector('.out')
// console.log(sp,p1,a)

var inif = JSON.parse(localStorage.getItem('info'))
// console.log(inif)
if(inif){
  sp.style.display='none'
  p1.style.display='block'
  a.style.display='block'
  p1.innerHTML=`${inif}`
}else{
  sp.style.display='block'
  p1.style.display='none'
  a.style.display='block'
}

 a.onclick = ()=>{
  location.href='./html/sign.html'
 }